/* =============================================================
   QUALITY CONTROL PAGE – Premium Redesign
   PT Indal Steel Pipe
   ============================================================= */

/* ===================== HERO SECTION ===================== */

.qc-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #000;
}

.qc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.qc-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: qcHeroZoomOut 8s linear forwards;
    opacity: 0.6;
}

@keyframes qcHeroZoomOut {
    from { transform: scale(1.06); }
    to { transform: scale(1); }
}

.qc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.6) 40%,
            rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.qc-hero-content {
    position: relative;
    z-index: 10;
    padding: 60px 0 60px;
    width: 100%;
    color: #fff;
}

.qc-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 22px;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    animation: qcFadeUp 0.8s ease forwards;
}

.qc-hero-label i {
    color: var(--accent, #d52b1e);
}

.qc-hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    animation: qcFadeUp 1s ease forwards;
}

.qc-hero-content h1 span {
    color: var(--accent, #d52b1e);
}

.qc-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.7;
    animation: qcFadeUp 1.2s ease forwards;
}

@keyframes qcFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================== PHILOSOPHY SECTION ===================== */

.qc-philosophy {
    padding: 100px 0;
    background: var(--bg-light, #f8f9fa);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent, #d52b1e);
    margin-bottom: 16px;
}

.qc-philosophy h2 {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text-dark, #111);
}

.qc-philosophy h2 span {
    color: var(--accent, #d52b1e);
}

.qc-philosophy p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light, #666);
    margin-bottom: 40px;
}

.philosophy-stats {
    display: flex;
    gap: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark, #111);
    line-height: 1;
}

.stat-item .lbl {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light, #666);
    margin-top: 8px;
    letter-spacing: 1px;
}

.philosophy-image {
    position: relative;
}

.image-stack {
    position: relative;
    padding-right: 40px;
    padding-bottom: 40px;
}

.img-main {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.image-floating-card {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #fff;
    padding: 24px 32px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.image-floating-card i {
    font-size: 24px;
    color: var(--accent, #d52b1e);
}

.image-floating-card span {
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark, #111);
}

/* ===================== WORKFLOW SECTION ===================== */

.qc-workflow {
    padding: 100px 0;
    background: #fff;
}

.align-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.workflow-card {
    background: var(--bg-light, #f8f9fa);
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.workflow-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--accent, #d52b1e);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent, #d52b1e);
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.workflow-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-dark, #111);
    letter-spacing: -0.02em;
}

.workflow-card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light, #666);
}

/* ===================== LABORATORY SECTION ===================== */

.qc-lab {
    padding: 100px 0;
    background: var(--bg-light, #f8f9fa);
}

.lab-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lab-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.lab-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.lab-content h2 span {
    color: var(--accent, #d52b1e);
}

.lab-features {
    list-style: none;
    padding: 0;
    margin: 30px 0 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.lab-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-mid, #333);
}

.lab-features li i {
    color: var(--accent, #d52b1e);
    font-size: 16px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 2px solid var(--accent, #d52b1e);
    color: var(--accent, #d52b1e);
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--accent, #d52b1e);
    color: #fff;
    box-shadow: 0 10px 20px rgba(139, 26, 26, 0.2);
    transform: translateY(-2px);
}

/* ===================== SCROLL REVEAL ===================== */

.will-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.will-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 1100px) {
    .workflow-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .philosophy-grid, .lab-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .qc-hero {
        height: 70vh;
        min-height: 480px;
    }

    .qc-hero-content {
        padding-bottom: 40px;
    }

    /* Stack the image above on tablet */
    .philosophy-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .qc-philosophy,
    .qc-workflow,
    .qc-lab {
        padding: 70px 0;
    }

    .philosophy-stats {
        flex-wrap: wrap;
        gap: 24px 40px;
    }

    /* Prevent floating card from overflowing */
    .image-stack {
        padding-right: 0;
        padding-bottom: 0;
    }

    .image-floating-card {
        position: static;
        margin-top: 16px;
        border-radius: 14px;
        width: 100%;
        justify-content: center;
    }

    .workflow-card {
        padding: 30px 24px;
    }
}

@media (max-width: 600px) {
    .workflow-steps {
        grid-template-columns: 1fr;
    }
    
    .qc-philosophy h2, .lab-content h2 {
        font-size: 2rem;
    }
    
    .philosophy-stats {
        gap: 20px;
    }

    .qc-philosophy,
    .qc-workflow,
    .qc-lab {
        padding: 50px 0;
    }

    .stat-item .num {
        font-size: 2rem;
    }

    .qc-hero {
        height: 65vh;
        min-height: 420px;
    }
}

@media (max-width: 480px) {
    .qc-hero-label {
        font-size: 10px;
        padding: 8px 16px;
        letter-spacing: 1.5px;
    }

    .workflow-card h3 {
        font-size: 1.1rem;
    }
}

/* ===================== DARK MODE SUPPORT ===================== */

body.dark-mode .qc-philosophy,
body.dark-mode .qc-lab {
    background: var(--bg);
}

body.dark-mode .qc-workflow {
    background: var(--bg-light);
}

body.dark-mode .qc-philosophy h2,
body.dark-mode .stat-item .num,
body.dark-mode .workflow-card h3,
body.dark-mode .lab-content h2,
body.dark-mode .image-floating-card span {
    color: var(--text);
}

body.dark-mode .qc-philosophy p,
body.dark-mode .stat-item .lbl,
body.dark-mode .workflow-card p,
body.dark-mode .lab-features li {
    color: var(--text-light);
}

body.dark-mode .image-floating-card,
body.dark-mode .workflow-card,
body.dark-mode .step-icon {
    background: var(--card-bg);
    border-color: var(--border);
    box-shadow: var(--shadow-md);
}

body.dark-mode .step-number {
    color: rgba(255, 255, 255, 0.03);
}
